package com.shine.app.bean;

import com.google.gson.annotations.SerializedName;
import com.shine.app.commons.StringUtils;

public class PlaceBean extends BaseBean {

	private static final long serialVersionUID = 1L;
	@SerializedName("Type")
	private int type;
	@SerializedName("Id")
	private int id;
	@SerializedName("Name")
	private String name;
	@SerializedName("Latitude")
	private double latitude;
	@SerializedName("Longitude")
	private double longitude;
	@SerializedName("StateCode")
	private String stateCode;
	@SerializedName("Address1")
	private String address1;
	@SerializedName("City")
	private String city;
	@SerializedName("ZipCode")
	private String zipCode;
	@SerializedName("FullName")
	private String fullName;

	public PlaceBean() {
	}

	public PlaceBean(double latitude, double longitude, String fullName) {
		this.latitude = latitude;
		this.longitude = longitude;
		this.fullName = fullName;
	}

	public PlaceBean(int id, String name, String address1, String city) {
		this.id = id;
		this.name = name;
		this.address1 = address1;
		this.city = city;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getStateCode() {
		if (StringUtils.isEmpty(stateCode)) {
			stateCode = "";
		}
		return stateCode;
	}

	public void setStateCode(String stateCode) {
		this.stateCode = stateCode;
	}

	public String getAddress1() {
		return address1;
	}

	public void setAddress1(String address1) {
		this.address1 = address1;
	}

	public String getCity() {
		if (StringUtils.isEmpty(city)) {
			city = "";
		}
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getZipCode() {
		if (StringUtils.isEmpty(zipCode)) {
			zipCode = "";
		}
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

}
